Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[WIP] Introduce priority queue-based policy again... again #131

Open
wants to merge 24 commits into
base: main
Choose a base branch
from

Conversation

johntyree
Copy link
Contributor

This is based off of #130 and should be merged after that one.

This is a remake of #81, which itself is a remake of #65 and #55.

This introduces the PriorityQueuePolicy again. It has good and bad qualities in comparison with the UndeterminedClausePolicy. It doesn't always produce the same results, but there's no reason to say that that policy is producing optimal results in the first place. They have comparable speed. On the slow scenario slow_bokeh_blaze.yaml, it's about 20% faster. However, when running the test suite, it's about 20% slower.

I think it has the potential to be more flexible than what we have now, but since we don't really know what the optimal way to suggest packages is I'm not sure if that's useful yet.

That all said, it's good to have a second implementation to keep things in perspective. I'll modify the tests such that they run for both policies, regardless of what we choose for a default.

TODO:

  • Update tests to run using both policies.

@johntyree johntyree changed the title Introduce priority queue-based policy again... again [WIP] Introduce priority queue-based policy again... again Jan 31, 2016
@johntyree
Copy link
Contributor Author

Right now, our error messages depend on the path that the solver takes through the search space. This means that any test involving error messages is likely to fail for one policy or the other.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants